The Pediatric AML Methylome Atlas#
Show code cell outputs
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[1], line 7
4 input_path = '../Data/Processed_Data/'
5 output_path = '../Data/Processed_Data/'
----> 7 x_train = pd.read_pickle(PaCMAP_path+'embedding.pkl')
8 x_test = pd.read_pickle(PaCMAP_path+'embedding_test.pkl')
10 y = pd.read_csv(input_path+'y.csv', index_col=0)
File ~/projects/MethylScore/Code/.venv_py38/lib/python3.8/site-packages/pandas/io/pickle.py:179, in read_pickle(filepath_or_buffer, compression, storage_options)
115 """
116 Load pickled pandas object (or any object) from file.
117
(...)
176 4 4 9
177 """
178 excs_to_catch = (AttributeError, ImportError, ModuleNotFoundError, TypeError)
--> 179 with get_handle(
180 filepath_or_buffer,
181 "rb",
182 compression=compression,
183 is_text=False,
184 storage_options=storage_options,
185 ) as handles:
186 # 1) try standard library Pickle
187 # 2) try pickle_compat (older pandas version) to handle subclass changes
188 # 3) try pickle_compat with latin-1 encoding upon a UnicodeDecodeError
190 try:
191 # TypeError for Cython complaints about object.__new__ vs Tick.__new__
192 try:
File ~/projects/MethylScore/Code/.venv_py38/lib/python3.8/site-packages/pandas/io/common.py:868, in get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text, errors, storage_options)
859 handle = open(
860 handle,
861 ioargs.mode,
(...)
864 newline="",
865 )
866 else:
867 # Binary mode
--> 868 handle = open(handle, ioargs.mode)
869 handles.append(handle)
871 # Convert BytesIO or file objects passed with an encoding
FileNotFoundError: [Errno 2] No such file or directory: '../Data/Processed_Data/PaCMAP_Results/embedding.pkl'
Interactive map of 1,142 pediatric AML patients based solely on their methylomes at diagnosis: